﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace MS.BasicData.Infrastructure
{
    public interface IBaseRepository<T> where T : class
    {

        Task<T?> GetAll(Expression<Func<T, bool>> where);

        Task<IList<T>> GetAllAsync(Expression<Func<T, bool>> where);

        Task<IList<T>> GetAllAsync();

        Task<int> InsertAsync(T entity);

        Task<int> UpdateAsync(T entity);
    }
}
